import request from "../request";

export function outAndIn(params) {  //游客出入闸机
    return request({
        url: 'sightseer/cockpit/queryTouristGate',
        method: 'GET',
        params: params
    })
}

export function sevenLoad() {  //近七日导览使用次数
    return request({
        url: 'sightseer/cockpit/querySevenGuide',
        method: 'GET',
    })
}

export function irrigationData(params) {  //智能灌溉
    return request({
        url: 'iotbase/meter/water/data/v2/analyse/contrast/' + params.itemId,
        method: 'GET',
    })
}

export function radioData(params) {  //智能广播
    return request({
        url: 'iotbase/device/statistics/info/' + params.itemId,
        method: 'GET',
        params: {typeIds: params.typeIds}
    })
}

export function waterData() {  //总单体建筑用水量
    return request({
        url: 'parkiot/energy/cockpit/queryWater',
        method: 'GET',
    })
}

export function electricData(params) {  //总单体建筑用电量
    return request({
        url: 'parkiot/energy/cockpit/queryElectric/' + params.deviceId,
        method: 'GET',
    })
}

export function airData(params) {  //总单体建筑用气量
    return request({
        url: 'parkiot/energy/cockpit/queryAir',
        method: 'GET',
    })
}

export function parkData(params) {  //总单体建筑用气量
    return request({
        url: 'parkiot/energy/cockpit/public/parkChart/' + params.type + '/' + params.equipName,
        method: 'GET',
    })
}

export function opDatas() {  //当日设备运维情况
    return request({
        url: 'incident/event/cockpit/public/queryDevOps',
        method: 'GET',
    })
}

export function thingsNumsDatas(params) {  //事件统计 数量
    return request({
        url: 'incident/event/cockpit/park/queryNumber/' + params.type,
        method: 'GET',
    })
}

export function sevenAnalysis(params) {  //7天安防事件数据
    return request({
        url: 'incident/event/cockpit/public/querySevenAnalysis/' + params.type,
        method: 'GET',
    })
}

export function todayBroken(params) {  //当日故障设备分析
    return request({
        url: 'devops/alarm/queryDeviceAnalysis',
        method: 'GET',
        params: params
    })
}

export function irrigationTable() {  //智能灌溉 table
    return request({
        url: 'irrigation/strategy/queryNewStrategy',
        method: 'GET',
    })
}

export function radioTable(params) {  //智能广播 table
    return request({
        url: 'loudspeaker/strategy/page',
        method: 'GET',
        params: params
    })
}

export function screenTable(params) {  //智能屏 table
    return request({
        url: 'video/strategy/page',
        method: 'GET',
        params: params
    })
}

export function statistics(params) {  //智能屏 table
    return request({
        url: '/iotbase/device/statistics/info/',
        method: 'get',
        params: params
    })
}

export function irrigation(params) {  //灌溉点位
    return request({
        url: 'irrigation/strategyGroup/queryAll/' + params,
        method: 'get',
    })
}


export function hotel(params) {  //酒店下攥
    return request({
        url: '/manage/person/tickets/hotel/data/' + params,
        method: 'get',
    })
}

export function tendency(params) {  //当日用电量
    return request({
        url: '/manage/person/tickets/today/venue/tendency/' + params,
        method: 'get',
    })
}


export function hotelNum(params) {  //近七天入住趋势
    return request({
        url: '/manage/person/tickets/week/hotel/statistics/' + params,
        method: 'get',
    })
}


export function soundInfo(params) {  //策略
    return request({
        url: '/loudspeaker/sound/info/' + params,
        method: 'get',
        header: {'Tenant-id': 10100}
    })
}

export function DeviceAlarm(params) {  //策略
    return request({
        url: '/devops/alarm/getDeviceAlarmNum/',
        method: 'get',
        params:params
    })
}

export function todayThings(params) {  //当日事件
    return request({
        url: '/incident/event/cockpit/public/queryPublicIssue/' + params.type,
        method: 'get',
        params:params
    })
}